Skip to content

feat(routes-b): implement DELETE /api/routes-b/email-suppressions/[id] - #1373

Merged
davedumto merged 1 commit into
davedumto:mainfrom
QueenColly:feature/1135-sms-templates
Sep 2, 2026
Merged

feat(routes-b): implement DELETE /api/routes-b/email-suppressions/[id]#1373
davedumto merged 1 commit into
davedumto:mainfrom
QueenColly:feature/1135-sms-templates

Conversation

@QueenColly

Copy link
Copy Markdown
Contributor

Summary
This PR implements the GET and POST /api/routes-b/sms-templates endpoints under the routes-b API convention for LancePay. It provides handlers for listing and creating SMS templates, complete with standard request validation, placeholder auth checks, and structured error formatting.

Changes Proposed

Created route handler at app/api/routes-b/sms-templates/route.ts.

Implemented the GET method to return a structured list of SMS templates.

Implemented the POST method to validate inputs (name and content) and securely mock creation of a template.

Ensured error and success envelopes conform exactly to the established routes-b structure.

Added comprehensive unit tests in __tests__/api/routes-b/sms-templates.test.ts to cover happy paths and key validation failure modes.

Acceptance Criteria Checklist

[x] Handler implemented for each listed method at the documented path.

[x] Validation and error envelopes match existing routes conventions.

[x] Unit tests pass in CI.

Closes #1135

@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

@QueenColly is attempting to deploy a commit to the david's projects Team on Vercel.

A member of the Team first needs to authorize it.

@davedumto
davedumto merged commit 8ff9eff into davedumto:main Sep 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[routes-b] GET,POST /api/routes-b/sms-templates - list and create SMS templates

2 participants